home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWCommon / Include / SLStdDef.idl < prev    next >
Encoding:
Text File  |  1996-04-25  |  2.8 KB  |  134 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLStdDef.idl
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SLSTDDEF_IDL
  11. #define SLSTDDEF_IDL
  12.  
  13. #ifndef FWENVDEF_IDL
  14. #include "FWEnvDef.idl"
  15. #endif
  16.  
  17. //========================================================================================
  18. //
  19. // This file is a mimic of FWStdDef.h with respect to the sizes of the entities defined 
  20. // in FWStdDef.h.  By including this file into other .idl files, you can use the same 
  21. // types in your .idl as you would use in the .h
  22. //
  23. //========================================================================================
  24.  
  25. #include <somobj.idl>
  26. #include <somcls.idl>
  27.  
  28. /*========================================================================================
  29. /  Type definitions
  30. /========================================================================================*/
  31.  
  32. typedef     octet             FW_Boolean;
  33.  
  34. typedef     unsigned short     FW_ResourceId;
  35.  
  36. typedef     unsigned short     FW_Milliseconds;
  37.  
  38. typedef     unsigned long     FW_TypeToken;
  39.  
  40. typedef     long            FW_PlatformError;
  41.  
  42. // ----- Macintosh -----
  43. #ifdef FW_BUILD_MAC
  44.  
  45. typedef     void*             FW_PlatformHandle;
  46.  
  47. typedef     unsigned long     FW_ResourceType;
  48.  
  49. typedef     void*            FW_Instance;
  50.  
  51. //typedef     double_t         FW_Double;
  52.  
  53. typedef        short            FW_PlatformCoordinate;
  54.  
  55. struct FW_SPlatformPoint
  56. {
  57.     FW_PlatformCoordinate h;
  58.     FW_PlatformCoordinate v;
  59. };
  60.  
  61. struct FW_SPlatformRect 
  62. {
  63.     FW_PlatformCoordinate left;
  64.     FW_PlatformCoordinate top;
  65.     FW_PlatformCoordinate right;
  66.     FW_PlatformCoordinate bottom;
  67. };
  68.  
  69. #endif
  70.  
  71.  
  72. // ----- Windows -----
  73. #ifdef FW_BUILD_WIN
  74.  
  75. typedef        long            FW_PlatformCoordinate;
  76.  
  77. typedef    void*                FW_PlatformHandle;
  78. typedef void*                 FW_Instance;
  79.  
  80. struct FW_SPlatformPoint
  81. {
  82.     FW_PlatformCoordinate x;
  83.     FW_PlatformCoordinate y;
  84. };
  85.  
  86. struct FW_SPlatformRect 
  87. {
  88.     FW_PlatformCoordinate left;
  89.     FW_PlatformCoordinate top;
  90.     FW_PlatformCoordinate right;
  91.     FW_PlatformCoordinate bottom;
  92. };
  93.  
  94. typedef     unsigned short     FW_ResourceType;
  95.  
  96. typedef     double             FW_Double;
  97.  
  98. typedef        somToken        HINSTANCE;
  99. typedef        somToken        HRSRC;
  100.  
  101. #endif
  102.  
  103. // IDL should not be using these, so don't define it until we need it
  104. //    [jkp]
  105. #if 0
  106.  
  107. /*========================================================================================
  108. /  Mac A5 Globals
  109. /========================================================================================*/
  110.  
  111. #ifdef FW_BUILD_MAC
  112.  
  113. #pragma options align=mac68k
  114. struct FW_QDGlobalRec
  115. {
  116.     char        privates[76];
  117.     long        randSeed;
  118.     BitMap        screenBits;
  119.     Cursor        arrow;
  120.     Pattern        dkGray;
  121.     Pattern        ltGray;
  122.     Pattern        gray;
  123.     Pattern        black;
  124.     Pattern        white;
  125.     GrafPtr        thePort;
  126. } FW_QDGlobalRec;
  127.  
  128. #pragma options align=reset
  129. #endif
  130.  
  131. #endif
  132.  
  133. #endif
  134.